package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 票 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "票")
@Table ( name ="Ticket")
public class Ticket  implements Serializable {

	private static final long serialVersionUID =  7318489808567271813L;

	/**
	 * 票ID
	 */
	@ApiModelProperty(value = "票ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Ticket_Id" )
	private Long ticketId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 人ID
	 */
	@ApiModelProperty(value = "人ID")
   	@Column(name = "Personal_Id" )
	private String personalId;

	/**
	 * 赠票ID
	 */
	@ApiModelProperty(value = "赠票ID")
   	@Column(name = "Ticket_Complimentary_Id" )
	private Long ticketComplimentaryId;

	/**
	 * 电子票记录ID
	 */
	@ApiModelProperty(value = "电子票记录ID")
   	@Column(name = "Ticket_Record_Id" )
	private Long ticketRecordId;

	/**
	 * 票种ID
	 */
	@ApiModelProperty(value = "票种ID")
   	@Column(name = "Ticket_Type_Id" )
	private Long ticketTypeId;

	/**
	 * 订单项ID
	 */
	@ApiModelProperty(value = "订单项ID")
   	@Column(name = "Order_Item_Id" )
	private Long orderItemId;

	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名")
   	@Column(name = "name" )
	private String name;

	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像")
   	@Column(name = "avatar" )
	private String avatar;

	/**
	 * 广告
	 */
	@ApiModelProperty(value = "广告")
   	@Column(name = "Banner" )
	private String banner;

	/**
	 * 票码
	 */
	@ApiModelProperty(value = "票码")
   	@Column(name = "Code" )
	private String code;

	/**
	 * 编号
	 */
	@ApiModelProperty(value = "编号")
   	@Column(name = "ID_Number" )
	private String idNumber;

	/**
	 * 是否通过
	 */
	@ApiModelProperty(value = "是否通过")
   	@Column(name = "IsPassage" )
	private Integer isPassage;

	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建日期",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	/**
	 * 签到日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "签到日期",example = "2018-10-01 12:18:48")
   	@Column(name = "SignDate" )
	private Date signDate;

	public Long getTicketId() {
		return this.ticketId;
	}

	public void setTicketId(Long ticketId) {
		this.ticketId = ticketId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPersonalId() {
		return this.personalId;
	}

	public void setPersonalId(String personalId) {
		this.personalId = personalId;
	}

	public Long getTicketComplimentaryId() {
		return this.ticketComplimentaryId;
	}

	public void setTicketComplimentaryId(Long ticketComplimentaryId) {
		this.ticketComplimentaryId = ticketComplimentaryId;
	}

	public Long getTicketRecordId() {
		return this.ticketRecordId;
	}

	public void setTicketRecordId(Long ticketRecordId) {
		this.ticketRecordId = ticketRecordId;
	}

	public Long getTicketTypeId() {
		return this.ticketTypeId;
	}

	public void setTicketTypeId(Long ticketTypeId) {
		this.ticketTypeId = ticketTypeId;
	}

	public Long getOrderItemId() {
		return this.orderItemId;
	}

	public void setOrderItemId(Long orderItemId) {
		this.orderItemId = orderItemId;
	}

	public String getBanner() {
		return this.banner;
	}

	public void setBanner(String banner) {
		this.banner = banner;
	}

	public String getAvatar() {
		return this.avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getIdNumber() {
		return this.idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public Integer getIsPassage() {
		return this.isPassage;
	}

	public void setIsPassage(Integer isPassage) {
		this.isPassage = isPassage;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getSignDate() {
		return this.signDate;
	}

	public void setSignDate(Date signDate) {
		this.signDate = signDate;
	}

	@Override
	public String toString() {
		return "{" +
					"ticketId='" + ticketId + '\'' +
					"projectId='" + projectId + '\'' +
					"personalId='" + personalId + '\'' +
					"ticketComplimentaryId='" + ticketComplimentaryId + '\'' +
					"ticketRecordId='" + ticketRecordId + '\'' +
					"ticketTypeId='" + ticketTypeId + '\'' +
					"orderItemId='" + orderItemId + '\'' +
					"banner='" + banner + '\'' +
					"code='" + code + '\'' +
					"idNumber='" + idNumber + '\'' +
					"isPassage='" + isPassage + '\'' +
					"createDate='" + createDate + '\'' +
					"signDate='" + signDate + '\'' +
				'}';
	}

}
